function ' Determines whether the filename is legal
Function isfilename (afilename)
Dim serrorstr,inamelength,i
isfilename=true
Serrorstr=array ("/", "\", ":", "*", "?", "" "", " Inamelength=len (afilename)
If inamelength Isfilename=false
Public Function Isemail (ByVal pstring)
Dim plt,pgt:plt = FALSE:PGT = False
For x = 2 to Len (pstring)-1
If Mid (pstring,x,1) = "@" Then Plt = True
If Mid (pstring,x,1) = "." and Plt = True Then PGT = True
Next
If Plt = True and PGT =
As mentioned earlier, email verification can be processed by js first, and then by asp and php. Let's take a look at a new example of asp mail address verification regular expression.
Just nowEmail VerificationYou can use js for processing first,
The last article we use string lookup method to achieve the ASP email email address verification, there may be more like the regular expression of friends, here also give the corresponding code.Method One
Copy Code code as follows:
Front Desk verification:First you have to have a parameter class, the parameter class code is as followsSummary of Validation tokens[DisplayName ("Email:")][Required (errormessage = "Please enter your email")][RegularExpression (@ "^ (\w-*\.*)
Tip: Because the project is a little bit large for me personally, so may be in some aspects of unclear or logic is not strong enough, if there is a problem please timely @ me.Original project: https://github.com/LineChen/Introduce the database
When it comes to regular expressions, there are a lot of common expressions on the web, but in fact, the average person is not willing to go to study, that is, to take the direct use of the line. However, in fact, there may be times when the actual
There are many ways to verify your email address. On the browser side, JS mailbox verification can be detected through regular expressions.
Like what:Copy CodeThe code is as follows:function Isemail (email) {Return/^ ((([a-z]|\d|[! #\$%& ' \*\+\-\/=
Regular Expression for email address verification
Email address verification in dedecms CopyCodeThe Code is as follows: $ Email = "test@jb51.com ";// Check the email format
Function checkemail ($ email){Return eregi ("^ [0-9a-z] [a-z0-9 \. _-]
In the previous article, we used the string SEARCH method to verify the asp email address. Some friends may prefer regular expressions. The corresponding code is also provided here.Method 1 Copy codeThe Code is as follows:Public Function ChkMail
'####################################'Function: ishttp [str]'Parameter: str, string to be processed'Author: Mu'Date: 2007/7/12'Description: checks whether the HTTP connection address or address bar starts with HTTP.'Example: '########################
Part 1ArticleWe use the string SEARCH method to verify the ASP email address. It may be a friend who prefers regular expressions.Code.Method 1
Copy code The Code is as follows: public function chkmail (byval email)
Dim rep, pmail: chkmail = true:
This article mainly introduces the implementation of JS and PHP email address verification, a friend in need can refer to There are many ways to verify mailbox addresses. In the browser side, JS mailbox authentication can be detected through
The following regular expression can verify multiple mailbox addresses
^ ([a-za-z0-9_-]) +@ ([a-za-z0-9_-]) + ((. [ a-za-z0-9_-]{1,4}) ({1,4}) $ key is (. [ a-za-z0-9_-]{1,4})
Look at an ASP tutorial mailbox verification Instance
function
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.